package com.schillerchina.baselibrary.network.config;import io.reactivex.Observable;import io.reactivex.ObservableSource;import io.reactivex.ObservableTransformer;import io.reactivex.android.schedulers.AndroidSchedulers;import io.reactivex.schedulers.Schedulers;/** * @author zhangzhiguo * @date 2019-08-05 09:39 * @Description: */class ThreadTransformer<T> implements ObservableTransformer<T, T> {    @Override    public ObservableSource<T> apply(Observable<T> tObservable) {        return tObservable.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread() );    }}